﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="intelliEssayHelpAgent.MainWindow"
        Title="MainWindow" Height="415" Width="730" WindowStyle="None" Background="{x:Null}" AllowsTransparency="True" Closing="Window_Closing">
    <Window.Resources>
        <Storyboard x:Key="OnMouseEnter1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="0.8"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="2">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="2">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="OnMouseLeave1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.6">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="2"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="2"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="HideToolBar">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ResolutionSwitch">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="intelliEssayBugCheck">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Publish">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SearchTool">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RegisterDllButton">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.7" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Documentation">
            	<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SmartJump">
            	<DiscreteObjectKeyFrame KeyTime="0:0:1.2" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="ShowToolBar">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ResolutionSwitch">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="intelliEssayBugCheck">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Publish">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.6" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SearchTool">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.8" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RegisterDllButton">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1.1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Documentation">
            	<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
            	<DiscreteObjectKeyFrame KeyTime="0:0:1.4" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SmartJump">
            	<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
            	<DiscreteObjectKeyFrame KeyTime="0:0:1.7" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="LoadContent"/>
        <Storyboard x:Key="ShowContent"/>
        <Storyboard x:Key="OnMouseEnter2">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.61"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="OnMouseLeave2">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.6">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="image">
            <BeginStoryboard x:Name="OnMouseEnter2_BeginStoryboard" Storyboard="{StaticResource OnMouseEnter2}"/>
        </EventTrigger>
        <EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="image">
            <BeginStoryboard x:Name="OnMouseLeave2_BeginStoryboard" Storyboard="{StaticResource OnMouseLeave2}"/>
        </EventTrigger>
    </Window.Triggers>
    <Grid Margin="0,0,17,19" AllowDrop="True"  Drop="Grid_DragEnter">
        <Border x:Name="MainBorder" BorderThickness="1" CornerRadius="10" Background="#FFB4B4B4" Margin="30,27,8,8">
            <Border.Effect>
                <DropShadowEffect BlurRadius="20"/>
            </Border.Effect>
            <Grid Margin="7">
                <TextBlock Height="45.345" Margin="0,8,12.419,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="16" FontFamily="Segoe UI" HorizontalAlignment="Right"><TextBlock.Foreground>
    					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    						<GradientStop Color="Black" Offset="0.678"/>
    						<GradientStop Offset="1" Color="#00999999"/>
    					</LinearGradientBrush>
    				</TextBlock.Foreground><Run FontWeight="Bold" Text="intelliEssay"/><Run Text=" "/><Run/><LineBreak/><Run FontWeight="Bold" Language="zh-cn" Text="PowerBuild">
                		<Run.Foreground>
                			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                				<GradientStop Color="Black" Offset="0.824"/>
                				<GradientStop Color="#00999999" Offset="1"/>
                			</LinearGradientBrush>
                		</Run.Foreground>
                	</Run></TextBlock>
                <Rectangle x:Name="rectangle" Height="13" Margin="-10,53.345,-9,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
                    <Rectangle.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Rectangle.RenderTransform>
                    <Rectangle.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="Black"/>
                            <GradientStop Offset="1" Color="#00B4B4B4"/>
                        </RadialGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Grid x:Name="BrowserGrid" Margin="8,84.845,8,9">
                    <RichTextBox x:Name="Browser" Margin="8,8,0,0" Background="{x:Null}" IsReadOnly="True" SelectionBrush="{x:Null}" BorderThickness="0">
                        <FlowDocument>
                            <Paragraph/>
                        </FlowDocument>
                    </RichTextBox>
                </Grid>
            </Grid>
        </Border>
        <Grid x:Name="ToolGrid" Height="53.345" VerticalAlignment="Top" Margin="40,30,130.499,0">
            <Image x:Name="ResolutionSwitch" ToolTip="Change Window Size" HorizontalAlignment="Left" Source="cinema_display.png" Stretch="Fill" Width="45.675" RenderTransformOrigin="0.5,0.5" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" Height="50.616" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment" Opacity="0.6" MouseLeftButtonDown="MouseLeftButtonDownToolItem">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="intelliEssayBugCheck" ToolTip="Start intelliEssay Bug Check System" Source="groups_folder.png" Stretch="Fill" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" Margin="53.175,5,0,0" Opacity="0.6" HorizontalAlignment="Left" Width="53" Height="42.916" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0.5,0.5" MouseLeftButtonDown="MouseLeftButtonDownToolItem">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Publish" Source="sync_folder_2.png" ToolTip="Publish new release and inform members" Stretch="Fill" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" Margin="102.554,3.5,0,0" Opacity="0.6" HorizontalAlignment="Left" Width="60.95" Height="44.345" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" MouseLeftButtonDown="MouseLeftButtonDownToolItem">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="ToolSwitch" Source="toolson.png" ToolTip="Hide/Show Tools" Stretch="Fill" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" Margin="474.7,7.95,0,0" Opacity="0.6" HorizontalAlignment="Left" Width="51.678" RenderTransformOrigin="0.5,0.5" MouseLeftButtonDown="MouseLeftButtonDownToolItem" Height="42.916" VerticalAlignment="Top">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="SearchTool" Margin="157.004,3.616,0,0" ToolTip="See intelliEssay Documentation" Source="search.png" Stretch="Fill" HorizontalAlignment="Left" Width="47" Height="47" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" Opacity="0.6" MouseLeftButtonDown="MouseLeftButtonDownToolItem">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="RegisterDllButton" Margin="198.849,5.422,0,0" Source="registry.png" Stretch="Fill" Height="50" Opacity="0.6" ToolTip="Register a new dll so intelliEssay core can use" RenderTransformOrigin="0.5,0.5" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" MouseLeftButtonDown="MouseLeftButtonDownToolItem" HorizontalAlignment="Left" Width="51.678" VerticalAlignment="Top">
                  <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="image" Source="preferences_system_windows_move.png" Stretch="Fill" Opacity="0.795" Margin="418.7,3.345,0,0" Height="50" HorizontalAlignment="Left" Width="51" VerticalAlignment="Top" ToolTip="Navigate intelliEssay Assist!"/>
            <Image x:Name="Documentation" Source="system_help.png" Stretch="Fill" Margin="254.527,5.422,0,0" Width="52" Height="50" d:LayoutOverrides="Width, Height" Opacity="0.6" ToolTip="See intelliEssay Help Files" RenderTransformOrigin="0.5,0.5" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" MouseLeftButtonDown="MouseLeftButtonDownToolItem" HorizontalAlignment="Left" VerticalAlignment="Top">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="SmartJump" Source="go_jump.png" Stretch="Fill" Width="50" HorizontalAlignment="Left" Margin="309,3.845,0,-0.5" Opacity="0.6" RenderTransformOrigin="0.5,0.5" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" MouseLeftButtonDown="MouseLeftButtonDownToolItem" VerticalAlignment="Top" ToolTip="SmartJump Technology">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="WhatsNew" HorizontalAlignment="Left" Margin="363.001,5,0,0" Source="folder_shared_connect.png" Stretch="Fill" Width="50" Opacity="0.6" Height="50" VerticalAlignment="Top" MouseEnter="MouseEnterToolItem" MouseLeave="MouseLeaveToolItem" MouseLeftButtonDown="MouseLeftButtonDownToolItem" RenderTransformOrigin="0.5,0.5" ToolTip="Connect To Team Foundation server">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
        </Grid>
        <Popup x:Name="PopUpMenu"  PlacementRectangle="1,100,1,1" AllowsTransparency="True" PopupAnimation="Slide">
            <Border BorderThickness="2,2,2,0" CornerRadius="10">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0.232"/>
                        <GradientStop Color="#77000000" Offset="1"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid x:Name="PopUpGrid" Margin="0,0,-1,-1" />
            </Border>
        </Popup>

    </Grid>
</Window>
